package fun.asgc.boot.netty.bean.test1;

import fun.asgc.boot.netty.annotation.Component;
import fun.asgc.boot.netty.annotation.NonIntercept;
import fun.asgc.boot.netty.bean.BeanIdentity;
import fun.asgc.boot.netty.bean.FactoryBean;
import fun.asgc.boot.netty.exception.BeanException;

/**
 *
 * @author: aoshiguchen
 * @date: 2022/7/4
 */
@NonIntercept
@Component
public class FactoryBean1 implements FactoryBean<Dog> {

	@Override
	public Dog getInstance() throws BeanException {
		return new Dog().setColor("黄色");
	}

	@Override
	public BeanIdentity getBeanIdentity() {
		return new BeanIdentity("dog10", Dog.class);
	}
}
